package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.GoodsReceiptDto;
import com.huaxiafinance.management.dto.request.ScoreOrderDto;
import com.huaxiafinance.management.model.MallOrder;
import com.huaxiafinance.management.model.OrderProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface MallOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MallOrder record);

    int insertSelective(MallOrder record);

    MallOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MallOrder record);

    int updateByPrimaryKey(MallOrder record);


    List<MallOrder> queryScoreOrders(ScoreOrderDto dto);

    int countScoreOrders(ScoreOrderDto dto);

    MallOrder selectById(@Param("orderId") Integer orderId);

    List<OrderProduct> queryOrderProduct(@Param("orderId") Integer orderId);

    int updateOrder(GoodsReceiptDto dto);

    int updateSettlementByOrderNo(MallOrder record);

    MallOrder selectByOrderNo(@Param("orderNo")String orderNO);

}